package cn.momoshenchi.search.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @version : 1.0
 * @author: momoshenchi
 * @date: 2021/5/5 - 21:14
 */
@Data
public class SkuEsModel
{
    private Long spuId;

    private Long skuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;

    private Long saleCount;
    private Boolean hasStock;
    private Long hotScore;

    private Long categoryId;
    private String categoryName;

    private Long brandId;
    private String brandName;
    private String brandImg;

    private List<Attrs> attrs;

    @Data
    public static class Attrs
    {
        private Long attrId;
        private String attrName;

        private String attrValue;
    }
}
